<?php
/**
* File that sets view of the map page.
* @package busmap
*/
?>
<h3>Kaart</h3>
<div class="data-listing">
	<input type="button" onClick="ensmallWorldMap()" value="Vähenda akent" class="submit-data">
	<input type="button" onClick="enlargeWorldMap()" value="Suurenda akent" class="submit-data">
</div>
<div id="mapContainer">
	<div class="loadingMap" id="mapLoading">
		Laen kaarti
	</div>
	<div class="loadingMap" id="mapBusstopsLoading">
		Laen bussipeatusi andmebaasist
	</div>
	
	<div id="map" style="display:none;z-index:10;">
		<div id="mapInner" style="background: url(/images/mapOfTheWorld.png) no-repeat; width:1402px; height:798px"> 
			<!--top level map content goes here--> 
			<div id="mapIcons" style="position:absolute;top:0px;left:0px;"></div>
		</div>
	</div>
	<?php
	$userSession = new Zend_Session_Namespace('Auth');
	$admin = ($userSession->id)?'true':'false';
	$activeBusstopId = $this->activeBusstopId;
	?>
	<img style="display:none;" src="/images/mapOfTheWorld.png" onLoad="worldMapLoaded(this, <?php echo $admin ?>, <?php echo $activeBusstopId ?>)">
</div>
